lib/archive: Tell g-ir-scanner to ignore the private libarchive bits
authorColin Walters <walters@verbum.org>
Fri, 15 Jun 2018 21:10:14 +0000 (21:10 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 18 Jun 2018 16:40:39 +0000 (16:40 +0000)
Squashes this warning:
```
src/libostree/ostree-libarchive-private.h:46: syntax error, unexpected typedef-name in '  g_autoptr(OtAutoArchiveRead) a = archive_read_new ();' at 'OtAutoArchiveRead'
```

Closes: #1629
Approved by: jlebon

src/libostree/ostree-libarchive-private.h

index 7529f41e3abd543df02b58b75bd44b0bcf578132..4a98b6d13373eabcff12f74e872e8f29122341b9 100644 (file)
@@ -23,6 +23,9 @@
 
 #pragma once
 
+/* Private, not for introspection */
+#ifndef __GI_SCANNER__
+
 #include "config.h"
 
 #include <gio/gio.h>
@@ -64,3 +67,5 @@ ot_open_archive_read (const char *path, GError **error)
 #endif
 
 G_END_DECLS
+
+#endif